package stu.kurs.services;

import java.util.List;
import javax.ejb.Remote;
import stu.kurs.exceptions.ServiceException;

@Remote
public interface IGenericService<T> {

	T findById(Integer id) throws ServiceException;

	List<T> findAll() throws ServiceException;

	T save(T entity) throws ServiceException;

	void delete(T entity) throws ServiceException;

	Integer getAllCount() throws ServiceException;
}
